import {request} from '../../utils/request.js'
const config = require('../../config.js');

/*** 获取用户信息 ***/
export function getMemberInfo(options){
    return request({
        url: '/api.php/index/StoreUserManage/getStoreUser',
        params: options,
    })
}

/*** 获取店铺首页 ***/
export function getStoreData(options) {
    return request({
        url: '/api.php/index/OrderManage/storehome',
        params: options,
    })
}
/*** 店铺数据编辑 ***/
export function editStoreData(options) {
    return request({
        url: '/api.php/index/StoreManage/updateMessage',
        params: options,
    })
}
/*** 获取店铺基本信息 ***/
export function getStoreDetail(options) {
    return request({
        url: '/api.php/index/StoreManage/getStoreMessage',
        params: options,
    })
}
/*** 七牛云上传图片 ***/
export function uploadQnImage(options) {
    return request({
        url: '/api.php/common/Qiniu/upLoadImg',
        params: options,
    })
}
/*** 获取店铺数据 ***/
export function getStoreDataList(options) {
    return request({
        url: '/api.php/index/OrderManage/storeData',
        params: options,
    })
}
/*** 申请开店 ***/
export function applyOpenShop(options) {
    return request({
        url: '/api.php/index/StoreUserManage/ApplyStore',
        //session:1,
        params: options,
    })
}



/*** 门店手艺人列表 ***/
export function getStaffList(options) {
    return request({
        url: '/api.php/index/StoreUserManage/storeToStoreUser',
        //session:1,
        params: options,
    })
}
/*** 门店手艺人详情 ***/
export function getStaffDetail(options) {
    return request({
        url: '/api.php/index/StoreManage/getStoreUserMessage',
        //session:1,
        params: options,
    })
}
/*** 离职手艺人 ***/
export function quitStaffAct(options) {
    return request({
        url: '/api.php/index/StoreUserManage/updateStatus',
        //session:1,
        params: options,
    })
}
/*** 设置手艺人权限 ***/
export function setStaffPermission(options) {
    return request({
        url: '/api.php/index/StoreUserManage/updateManagePermission',
        //session:1,
        params: options,
    })
}
/*** 获取分类 ***/
export function getCategoryList(options) {
    return request({
        url: '/api.php/index/goods/category',
        params: options,
    })
}
/*** 新增项目 ***/
export function addGoodsCb(options) {
    return request({
        url: '/api.php/index/goods/add',
        params: options,
    })
}
/*** 获取门店项目列表 ***/
export function getStoreWorkList(options) {
    return request({
        url: '/api.php/index/goods/plists',
        params: options,
    })
}
/*** 获取员工项目列表 ***/
export function getStaffWorkList(options) {
    return request({
        url: '/api.php/index/goods/Plists',
        params: options,
    })
}
/*** 获取项目详情 ***/
export function getWorkDetail(options) {
    return request({
        url: '/api.php/index/goods/info',
        params: options,
    })
}
/*** 删除项目详情 ***/
export function deletaGoodsItem(options) {
    return request({
        url: '/api.php/index/goods/close',
        params: options,
    })
}
/*** 获取邀请入店二维码 ***/
export function getShopInviteEcode(options) {
    return request({
        url: '/api.php//index/Qrcode/createStoreInviteCode',
        params: options,
    })
}



/*** 验证码核销 ***/
export function verificationConsume(options) {
    return request({
        url: '/api.php//index/VerificationManage/consume',
        params: options,
    })
}
/*** 查询核销码信息 ***/
export function getVerificationDetail(options) {
    return request({
        url: '/api.php/index/VerificationManage/query',
        params: options,
    })
}
/*** 查询核销历史 ***/
export function getVerificationList(options) {
    return request({
        url: '/api.php/index/VerificationManage/queryList',
        params: options,
    })
}
/*** 获取用户服务区域 ***/
export function getUserRange(options) {
    return request({
        url: '/api.php/index/StoreUserManage/getServiceArea',
        params: options,
    })
}
/***编辑用户服务区域 ***/
export function setUserRange(options) {
    return request({
        url: '/api.php/index/StoreUserManage/setServiceArea',
        params: options,
    })
}




/***获取员工订单 ***/
export function getStaffOrderList(options) {
    return request({
        url: '/api.php/index/OrderManage/orderList',
        params: options,
    })
}
/***推荐项目 ***/
export function recommendItem(options) {
    return request({
        url: '/api.php/index/goods/recommend',
        params: options,
    })
}
/***获取预约日期 ***/
export function getAppointDate(options) {
    return request({
        url: '/api.php//index/AppointTime/appointTime',
        params: options,
    })
}
/***获取预约时间片段 ***/
export function getAppointTime(options) {
    return request({
        url: '/api.php/index/AppointTime/getAppointTime',
        params: options,
    })
}
/***设置预约时间 ***/
export function setAppointTime(options) {
    return request({
        url: '/api.php/index/AppointTime/setAppointTime',
        params: options,
    })
}
/***用户接单操作 ***/
export function staffConfirmOrder(options) {
    return request({
        url: '/api.php/index/OrderManage/confirmOrder',
        params: options,
    })
}

/***用户确认服务完成（包括2开） ***/
export function staffFinishService(options) {
    return request({
        url: '/api.php/index/OrderManage/finishService',
        params: options,
    })
}
/***提现列表 ***/
export function getFinanceList(options) {
    return request({
        url: '/api.php/index/OrderManage/cashOrderList',
        params: options,
    })
}
/***申请提现 ***/
export function applyFinance(options) {
    return request({
        url: '/api.php/index/StoreManage/applyCash',
        params: options,
    })
}
/***用户退款申请操作 ***/
export function refundManage(options) {
    return request({
        url: '/api.php/index/OrderManage/refundManage',
        params: options,
    })
}
/***手艺人待完成服务 ***/
export function waitComfirmOrders(options) {
    return request({
        url: '/api.php//index/OrderManage/waitStoreUserConfirm',
        params: options,
    })
}
/***编辑手艺人信息 ***/
export function editStaffInfo(options) {
    return request({
        url: '/api.php//index/StoreUserManage/setInfo',
        params: options,
    })
}
/***绑定手机号 ***/
export function bindPhone(options) {
    return request({
        url: '/api.php/index/StoreUserManage/bindPhone',
        params: options,
    })
}
//短信类型【1：用户注册，2：修改密码，3：登录异常，4：登录验证，5：身份确认，6：信息变更】
export function getValidateCode(options) {
    return request({
        url: '/api.php/common/AliyunSms/sendCode',
        params: options,
    })
}
export function getRecommendCount(options) {
    return request({
        url: '/api.php/index/goods/RecommentCount',
        params: options,
    })
}